package fr.lip6.meta.ple.plextraction;

import java.util.ArrayList;

import org.eclipse.gmt.modisco.java.Model;

import artefact.generic.Artefact;

import fr.lip6.meta.tools.ModiscoJavaModelLoader;


public class MainTestArgoUML4Xmi {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList<Artefact> artefacts = new ArrayList<Artefact>();
		String[] products = {
				"ActivityDisabled",
				"AllDisabled",
				"CognitiveDisabled",
				"CollabDisabled",
				"DeployDisabled",
				"LoggingDisabled",
				"Original",
				"SequenceDisabled",
				"StateDisabled",
				"UsecaseDisabled"
		};

		System.out.println("Test (ArgoUML)");

		for (int i=0; i<3; i++) {
			ModiscoJavaModelLoader mod = new ModiscoJavaModelLoader();
			String fileName = "generated/argouml/"+products[i]+"_java.xmi";
			Model model = ModiscoJavaModelLoader.loadModiscoJavaModel(fileName);
			Artefact ar;
			
			mod.createArtefact(model, fileName);

			ar = mod.getProduct();
			ar.setId(i);
			artefacts.add(ar);
		}

		Extract.extract(artefacts,"argouml",products,"");
		
		System.out.println("Fin");
	}
}